﻿using ZFB.Common;
using ZFB.Models;
using ZFB.Repository;

namespace ZFB.IServices
{
    public interface ICityServices
    {
        /// <summary>
        /// 添加城市
        /// </summary>
        /// <param name="CityName"></param>
        /// <returns></returns>
        Task<ApiResult> AddCityAsync(string CityName);
        /// <summary>
        /// 获取所有城市
        /// </summary>
        /// <returns></returns>
        Task<ApiResult> GetCityAsync();
        /// <summary>
        /// 根据id获得城市
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResult> GetCityByIdAsync(long id);
    }
}